package org.wattdepot.cli;

import static org.junit.Assert.assertTrue;
import java.util.List;
import org.junit.Test;

/**
 * Test the output of the summary is valid.
 * @author Edwin Lim, Wing Ma Cheung
 *
 */
public class TestListSrcSummary {
  /**
   * Checks the input and the output for a valid result.
   * @throws Exception Wrong output or output is null.
   */
  @Test
  public void testListSummary() throws Exception {
    String command = "summary SIM_KAHE";
    List<String> arguments = CommandLineInterface.deliminateCommand(command);
    arguments.remove(0);
    List<String> result = arguments;   
    String output = (new ListSrcSummary().doCommand(result));
    assertTrue("Check power output", ((output != null)));   
  }
  
}
